package com.zhm.springcloud.controller;

import com.zhm.springcloud.service.MyMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Date： 2021/3/16 22:27
 *
 * @author ZHM
 */
@RestController
public class SendMessageController {

    @Resource
    private MyMessageProvider messageProvider;

    @GetMapping(value = "/send_message")
    public String sendMessage(){
        return messageProvider.send();
    }

}
